package com.example.userinfoservice.listener;

import com.example.blogcommon.constant.Constants;
import org.springframework.amqp.core.Message;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class HelloQueueListener {
    @RabbitListener(queues = "hello")
    void listen(Message message) {
        System.out.println(message);
    }
}
